package Train;

import java.math.BigInteger;
import java.util.Scanner;

public class threeDay {
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            int c = scanner.nextInt();
            int d = scanner.nextInt();
            int A,B,C,D = 0;
            A = (a+c)/2;
            B = (b+d)/2;
            C = (d-b)/2;
            if(A-B == a && B-C == b && A+B == c && B+C == d){
                System.out.println(A+" "+B+" "+C);
            }else {
                System.out.println("No");
            }
        }
    }
    //进制转换
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (scanner.hasNext()) { // 注意 while 处理多个 case
            String s1  = scanner.next();//输入十进制的数
            boolean flog = false;
            if(s1.charAt(0) == '-'){
              s1 = s1.substring(1,s1.length());
                flog = true;
            }
            BigInteger n = new BigInteger(s1);
            int m = scanner.nextInt();//输出要转换的进制
            //二进制就是%2/2,取模的append上

            StringBuilder str = new StringBuilder();
            while (n.compareTo(new BigInteger(String.valueOf(0))) > 0){
                char c = 0;
                int p = n.remainder(BigInteger.valueOf(m)).intValue();
                if(m < 10){
                    c = (char) (p+48);
                }else {
                    //1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
                    if(p  < 10){
                        c = (char) (p+48);
                    }else {
                        c = (char) ((p % 10)+'A');
                    }
                }
               n = n.divide(BigInteger.valueOf(m));
                str.append(c);
            }
            if(str.length() == 0){
                str.append(0);
            }
            if(flog){
                //如果是负数
            str.append('-');
            }
            str.reverse();

            System.out.println(str);
        }
    }

    public static void main(String[] args) {
        System.out.println(5>>2>>>2);
    }

}
